home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNADWM.IN_ / oemnadwm.inf
INI File  |  1996-07-12  |  24KB  |  623 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     MCA
  5. [Options]
  6.     WD8003EA
  7.     WD8003WA
  8.     WD8013WPA
  9.     WD8013EPA
  10. [CardInfo]
  11.     WD8003EA = 192, 111, wd8003ea, 28608
  12.     WD8003WA = 194, 111, wd8003wa, 28610
  13.     WD8013WPA = 201, 97, wd8013wpa, 25033
  14.     WD8013EPA = 200, 97, wd8013epa, 25032
  15. [FileConstants]
  16. UtilityInf      = "UTILITY.INF"
  17. subroutineinf   = "SUBROUTN.INF"
  18. SoftwareType    = "driver"
  19. Exit_Code       = 0
  20. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  21. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  22. CardList = ^(CardInfo,0)
  23. Card1ByteList = ^(CardInfo, 1)
  24. Card2ByteList = ^(CardInfo, 2)
  25. CardRuleList = ^(CardInfo, 3)
  26. CardIDList = ^(CardInfo, 4 )
  27. Card1Byte = *($(Card1ByteList), ~($(CardList), $(Option)))
  28. Card2Byte = *($(Card2ByteList), ~($(CardList), $(Option)))
  29. NETCARD_ID = *($(CardIDList), ~($(CardList), $(Option)))
  30. CardRule = *($(CardRuleList), ~($(CardList), $(Option)))
  31. EthernetCards  = { WD8003EA, WD8003SA, WD8003WA, WD8013EA, WD8013WA, +
  32.                   WD8013WPA, WD8013EPA, +
  33.                   BISTOR003EA, BISTOR013EA, BISTOR013WA }
  34. TokenRingCards = { WD8115TRA }
  35. Manufacturer    = "Microsoft"
  36. ProductMajorVersion     = "4"
  37. ProductMinorVersion     = "0"
  38. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  39. ProductSoftwareName     = "SMC8000N"
  40. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\smcisa.sys"
  41. NetRuleSoftwareType     = "smc8000nSys ndisDriver smc8000nDriver"
  42. NetRuleSoftwareUse      = $(SoftwareType)
  43. NetRuleSoftwareBindForm = """Smc8000nDriver"" yes no container"
  44. NetRuleSoftwareClass    = {"smc8000nDriver basic"}
  45. ProductHardwareName     = $(Option)
  46. NetRuleHardwareType     = $(CardRule)" "$(CardRule)"Adapter"
  47. NetRuleHardwareBindForm = " yes yes container"
  48. NetRuleHardwareClass    = {""$(CardRule)"Adapter basic"}
  49. ProductOpSupport     = 132 
  50. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  51. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  52. [GeneralConstants]
  53. from      = ""
  54. to        = ""
  55. ExitCodeOk     = 0
  56. ExitCodeCancel = 1
  57. ExitCodeFatal  = 2
  58. KeyNull         = ""
  59. MAXIMUM_ALLOWED   = 33554432
  60. SERVICE_NO_CHANGE = 4294967295
  61. RegistryErrorIndex = NO_ERROR
  62. KeyProduct      = ""
  63. KeyParameters   = ""
  64. TRUE            = 1
  65. FALSE           = 0
  66. NoTitle            = 0
  67. ExitState   = "Active"
  68. OldVersionExisted = $(FALSE)
  69. DriverPath      = $(!STF_NTPATH)\drivers
  70. [date]
  71.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  72. [Identify]
  73.     read-syms Identification
  74.     set Status     = STATUS_SUCCESSFUL
  75.     set Identifier = $(OptionType)
  76.     set Media      = #("Source Media Descriptions", 1, 1)
  77.     Return $(Status) $(Identifier) $(Media)
  78. [ReturnOptions]
  79.     set Status        = STATUS_FAILED
  80.     set OptionList     = {}
  81.     set OptionTextList = {}
  82.     set LanguageList = ^(LanguagesSupported, 1)
  83.     Ifcontains(i) $($0) in $(LanguageList)
  84.         ifstr(i) $($1) == ""
  85.            goto returnoptions
  86.         endif
  87.         set PlatformList = ^(PlatformsSupported, 1)
  88.         Ifcontains(i) $($1) in $(PlatformList)
  89.            goto returnoptions
  90.         else
  91.            set Status = STATUS_NOTSUPPORTED
  92.            goto finish_ReturnOptions
  93.         endif
  94.     else
  95.         set Status = STATUS_NOLANGUAGE
  96.         goto finish_ReturnOptions
  97.     endif
  98. returnoptions = +
  99.     set OptionList     = ^(Options, 1)
  100.     set OptionTextList = ^(OptionsText$($0), 1)
  101.     set Status         = STATUS_SUCCESSFUL
  102. finish_ReturnOptions = +
  103.     Return $(Status) $(OptionList) $(OptionTextList)
  104. [InstallOption]
  105.     set Option   = $($1)
  106.     set SrcDir   = $($2)
  107.     set AddCopy  = $($3)
  108.     set DoCopy   = $($4)
  109.     set DoConfig = $($5)
  110.     set LanguageList = ^(LanguagesSupported, 1)
  111.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  112.         Return STATUS_NOLANGUAGE
  113.     endif
  114.     Debug-Output "OEMNADWM.INF: STF_CWDIR is: "$(!STF_CWDIR)
  115.     Debug-Output "OEMNADWM.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  116.     set-subst LF = "\n"
  117.     read-syms GeneralConstants
  118.     read-syms FileConstants
  119.     Shell $(UtilityInf), GetBindingInfo, "WD"
  120.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  121.         Debug-Output "ShellCode error: cannot get an error string."
  122.         goto ShellCodeError
  123.     endif
  124.     set NetRuleSoftwareBindable = $($R1)
  125.     read-syms DialogConstants$(!STF_LANGUAGE)
  126.     read-syms FileConstants$(!STF_LANGUAGE)
  127.     detect date
  128.     set-title  $(FunctionTitle)
  129.     set to   = Begin
  130.     set from = Begin
  131.     set CommonStatus = STATUS_SUCCESSFUL
  132.     EndWait
  133. Begin = +
  134.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  135.         set StartLabel = removeadapter
  136.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  137.         set StartLabel = UpgradeSoftware
  138.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  139.         set StartLabel = bindingadapter
  140.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  141.         set CommonStatus = STATUS_REBOOT
  142.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  143.             Debug-Output "Cannot configure the western digital driver software."
  144.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  145.         else
  146.             Debug-Output "Cannot configure the western digital adapter card."
  147.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  148.         endif
  149.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  150.             Debug-Output "ShellCode error: cannot get an error string."
  151.             goto ShellCodeError
  152.         endif
  153.         set Error = $($R0)
  154.         set from = end
  155.         set to = end
  156.         goto nonfatalinfo
  157.     else
  158.         set StartLabel = installadapter
  159.         set OEM_ABANDON_OPTIONS = {}
  160.         set OEM_ABANDON_SOFTWARE = FALSE
  161.         set OEM_ABANDON_ON = TRUE
  162.     endif
  163.     set from = $(fatal)
  164.     set to = $(fatal)
  165.     goto $(StartLabel)
  166. installadapter = +
  167.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  168.     Ifstr $(KeyProduct) != $(KeyNull)
  169.         CloseRegKey $(KeyProduct)
  170.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  171.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  172.                $(ProductVersion)
  173.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  174.                Debug-Output "ShellCode error: cannot get an error string."
  175.                goto ShellCodeError
  176.            endif
  177.            goto end
  178.         else
  179.            Shell $(UtilityInf), CardExistedDlg
  180.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  181.                Debug-Output "ShellCode error: cannot get an error string."
  182.                goto ShellCodeError
  183.            endif
  184.            ifstr(i) $($R1) != "OK"
  185.                Set CommonStatus = STATUS_USERCANCEL
  186.                goto end
  187.            endif
  188.            set OldVersionExisted = $(TRUE)
  189.         endif
  190.     endif
  191.     goto nextstep
  192. configureadapter = +
  193.     set Error = "Configure: Sorry, not yet implemented."
  194.     goto fatal
  195. nextstep = +
  196.     StartWait
  197. installproduct = +
  198.     Shell $(UtilityInf), MCAFindBus, $(Card1Byte), $(Card2Byte)
  199.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  200.         goto ShellCodeError
  201.     endif
  202.     ifstr $($R0) != "NO_ERROR"
  203.         set Error = $($R0)
  204.         goto fatal
  205.     endif
  206.     ifstr(i) $($R1) == {}
  207.         set Error = $(CANNOT_FIND_ANY_CARD)
  208.         set CommonStatus = STATUS_USERCANCEL
  209.         set from = "end"
  210.         goto nonfatal
  211.     endif
  212.     set AdapterList = $($R1)
  213.     Ifint $(OldVersionExisted) == $(FALSE)
  214.         ifstr(i) $(!NTN_InstallMode) == "install"
  215.            Ifstr(i) $(DoCopy) == "YES"
  216.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  217.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  218.                   Goto ShellCodeError
  219.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  220.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  221.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  222.                       goto ShellCodeError
  223.                   endif
  224.                   set Error = $($R0)
  225.                   Goto fatal
  226.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  227.                   Goto successful
  228.               Endif
  229.               Set SrcDir = $($R1)
  230.            Endif
  231.            install "Install-Option"
  232.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  233.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  234.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  235.                   goto ShellCodeError
  236.               endif
  237.               set Error = $($R0)
  238.               goto fatal
  239.            endif
  240.         endif
  241.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  242.             $(ProductSoftwareName), +
  243.             $(ProductSoftwareName), +
  244.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  245.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  246.             $(NetEventDLL)
  247.         Set OEM_ABANDON_SOFTWARE = TRUE
  248.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  249.             goto ShellCodeError
  250.         endif
  251.         set RegistryErrorIndex = $($R0)
  252.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  253.             EndWait
  254.             CloseRegKey $($R1)
  255.             CloseRegKey $($R2)
  256.             CloseRegKey $($R3)
  257.             CloseRegKey $($R4)
  258.             CloseRegKey $($R5)
  259.             goto fatalregistry
  260.         endif
  261.         Set SoftProductKey      = $($R1)
  262.         Set SoftNetRuleKey      = $($R2)
  263.         Set SoftServiceKey      = $($R3)
  264.         Set SoftParameterKey    = $($R4)
  265.         Set SoftLinkageKey      = $($R5)
  266.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  267.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  268.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  269.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  270.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  271.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  272.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  273.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  274.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  275.             goto ShellCodeError
  276.         endif
  277.         set RegistryErrorIndex = $($R0)
  278.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  279.             EndWait
  280.             CloseRegKey $(SoftProductKey)
  281.             CloseRegKey $(SoftNetRuleKey)
  282.             CloseRegKey $(SoftServiceKey)
  283.             CloseRegKey $(SoftParameterKey)
  284.             CloseRegKey $(SoftLinkageKey)
  285.             goto fatalregistry
  286.         endif
  287.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  288.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  289.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  290.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  291.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  292.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  293.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  294.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  295.             goto ShellCodeError
  296.         endif
  297.         set RegistryErrorIndex = $($R0)
  298.         CloseRegKey $(SoftProductKey)
  299.         CloseRegKey $(SoftNetRuleKey)
  300.         CloseRegKey $(SoftServiceKey)
  301.         CloseRegKey $(SoftParameterKey)
  302.         CloseRegKey $(SoftLinkageKey)
  303.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  304.             EndWait
  305.             goto fatalregistry
  306.         endif
  307.     endif
  308.     ForListDo $(AdapterList)
  309.         set BusNum = *($($),1)
  310.         set SlotNum = *($($),2)
  311.         Debug-Output $(BusNum)
  312.         Debug-Output $(SlotNum)
  313.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  314.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  315.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  316.             goto ShellCodeError
  317.         endif
  318.         ifstr $($R0) != "NO_ERROR"
  319.             set Error = $($R0)
  320.             goto fatal
  321.         endif
  322.         ifstr(i) $($R1) != "YES"
  323.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  324.                 ifint $($R4) != -1
  325.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  326.                 endif
  327.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  328.                     goto ShellCodeError
  329.                 endif
  330.                 set RegistryErrorIndex = $($R0)
  331.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  332.                     EndWait
  333.                     CloseRegKey $($R1)
  334.                     CloseRegKey $($R2)
  335.                     CloseRegKey $($R3)
  336.                     goto fatalregistry
  337.                 endif
  338.                 Set HardNetCardKey      = $($R1)
  339.                 Set HardNetRuleKey      = $($R2)
  340.                 Set HardParameterKey    = $($R3)
  341.                 set AdapterNumber = $($R4)
  342.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  343.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  344.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  345.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  346.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  347.                                    {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  348.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  349.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  350.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  351.                     goto ShellCodeError
  352.                 endif
  353.                 IfContains $(Option) in $(EthernetCards)
  354.                     set CardMediaType = 1
  355.                     set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  356.                                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  357.                                        {BusType,$(NoTitle),$(!REG_VT_DWORD),3},+
  358.                                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  359.                                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)}}
  360.                 else
  361.                     set CardMediaType = 2
  362.                     set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  363.                                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  364.                                        {BusType,$(NoTitle),$(!REG_VT_DWORD),3},+
  365.                                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  366.                                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)},+
  367.                                        {MaximumPacketSize,$(NoTitle),$(!REG_VT_DWORD), 8192}}
  368.                 endif
  369.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  370.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  371.                     goto ShellCodeError
  372.                 endif
  373.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  374.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  375.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  376.                                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  377.                                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  378.                                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  379.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  380.                 CloseRegKey $(HardNetCardKey)
  381.                 CloseRegKey $(HardNetRuleKey)
  382.                 CloseRegKey $(HardParameterKey)
  383.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  384.                     goto ShellCodeError
  385.                 endif
  386.         endif
  387.     EndForListDo
  388.     goto writeparameters
  389. writeparameters = +
  390.     EndWait
  391.     goto successful
  392. bindingadapter =+
  393.     set Error = "Binding: Sorry, not yet implemented."
  394.     goto fatal
  395. removeadapter = +
  396.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  397.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  398.             $(ProductSoftwareName)
  399.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  400.             Debug-Output "ShellCode error"
  401.             goto ShellCodeError
  402.         endif
  403.         set RegistryErrorIndex = $($R0)
  404.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  405.             goto fatalregistry
  406.         endif
  407.     else
  408.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  409.             $(ProductSoftwareName), $(!NTN_RegBase)
  410.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  411.             Debug-Output "ShellCode error"
  412.             goto ShellCodeError
  413.         endif
  414.         set RegistryErrorIndex = $($R0)
  415.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  416.             goto fatalregistry
  417.         endif
  418.     endif
  419.     goto end
  420. UpgradeSoftware = +
  421.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  422.     Ifstr $(KeyProduct) != $(KeyNull)
  423.         install "Install-Update"
  424.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  425.             goto fatal
  426.         endif
  427.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  428.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  429.         CloseRegKey $(KeyProduct)
  430.         LibraryProcedure Result, $(!LIBHANDLE), SetupChangeServiceConfig, "SMC8000N", $(SERVICE_NO_CHANGE), $(SERVICE_NO_CHANGE), $(SERVICE_NO_CHANGE), "\SystemRoot\System32\drivers\smcisa.sys", "", "", "", "", ""
  431.     else
  432.         goto fatalregistry
  433.     endif
  434.     set iSearch = 1
  435. nextnetcard = +
  436.     Shell $(UtilityInf), FindNextNetworkCard, $(ProductHardwareName), $(iSearch)
  437.     set KeyNetcard = $($R0)
  438.     set iSearch = $($R1)
  439.     Debug-Output "OemNadEp.Inf: FindNextNetworkCard "$(KeyNetcard)","$(iSearch)
  440.     Ifstr $(KeyNetcard) != $(KeyNull)
  441.         Debug-Output "OemNadEp.Inf: Setting OperationsSupport value"
  442.         SetRegValue $(KeyNetcard) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  443.         CloseRegKey $(KeyNetcard)
  444.         goto nextnetcard
  445.     Endif
  446.     goto end
  447. successful = +
  448.     goto end
  449. abandon = +
  450.     ForListDo $(OEM_ABANDON_OPTIONS)
  451.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  452.             $(ProductSoftwareName), $($)
  453.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  454.             Debug-Output "ShellCode error"
  455.             goto ShellCodeError
  456.         endif
  457.         set RegistryErrorIndex = $($R0)
  458.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  459.             goto fatalregistry
  460.         endif
  461.     EndForListDo
  462.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  463.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  464.             $(ProductSoftwareName), FALSE
  465.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  466.             Debug-Output "ShellCode error"
  467.             goto ShellCodeError
  468.         endif
  469.         set RegistryErrorIndex = $($R0)
  470.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  471.             goto fatalregistry
  472.         endif
  473.     endif
  474.     goto end
  475. warning = +
  476.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  477.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  478.         goto ShellCodeError
  479.     endif
  480.     ifstr(i) $($R1) == "OK"
  481.         goto $(to)
  482.     else-ifstr(i) $($R1) == "CANCEL"
  483.         goto $(from)
  484.     else
  485.         goto "end"
  486.     endif
  487. nonfatalinfo = +
  488.     Set CommonStatus = STATUS_USERCANCEL
  489.     Set Severity = STATUS
  490.     goto nonfatalmsg
  491. nonfatal = +
  492.     Set Severity = NONFATAL
  493.     goto nonfatalmsg
  494. nonfatalmsg = +
  495.     ifstr(i) $(Error) == ""
  496.         Set Severity = NONFATAL
  497.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  498.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  499.             goto ShellCodeError
  500.         endif
  501.         set Error = $($R0)
  502.     endif
  503.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  504.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  505.         goto ShellCodeError
  506.     endif
  507.     ifstr(i) $($R1) == "OK"
  508.         goto $(from)
  509.     else
  510.         goto "end"
  511.     endif
  512. fatalregistry = +
  513.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  514.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  515.         goto ShellCodeError
  516.     endif
  517.     set Error = $($R0)
  518.     goto fatal
  519. fatal = +
  520.     ifstr(i) $(Error) == ""
  521.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  522.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  523.             goto ShellCodeError
  524.         endif
  525.         set Error = $($R0)
  526.     endif
  527.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  528.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  529.         goto ShellCodeError
  530.     endif
  531.     goto setfailed
  532. ShellCodeError = +
  533.     set DlgType      = "MessageBox"
  534.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  535.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  536.     set STF_MB_TYPE  = 1
  537.     set STF_MB_ICON  = 3
  538.     set STF_MB_DEF   = 1
  539.     ui start "Error Message"
  540.     goto setfailed
  541. setfailed = +
  542.     set CommonStatus = STATUS_FAILED
  543.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  544.         set OEM_ABANDON_ON = FALSE
  545.         goto abandon
  546.     endif
  547.     goto end
  548. end = +
  549.     goto term
  550. term = +
  551.     Return $(CommonStatus)
  552. [Install-Option]
  553.     set STF_VITAL = ""
  554.     ifstr(i) $(AddCopy) == "YES"
  555.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  556.     endif
  557.     ifstr(i) $(DoCopy) == "YES"
  558.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  559.        CopyFilesInCopyList
  560.     endif
  561.     ifstr(i) $(DoConfig) == "YES"
  562.     endif
  563.     Exit
  564. [Install-Update]
  565.    set STF_VITAL        = ""
  566.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  567.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  568.    exit
  569. [Source Media Descriptions]
  570.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  571. [Signature]
  572.     FileType = MICROSOFT_FILE
  573. [GetSignature]
  574.     read-syms Signature
  575.     return $(FileType)
  576. [ProductType]
  577. STF_PRODUCT  = LanmanNT
  578. STF_PLATFORM = I386
  579. [Files-Inf]
  580. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  581. [Files-BISTOR003EA]
  582. 1,SMCISA.SYS , SIZE=999
  583. [Files-BISTOR013EA]
  584. 1,SMCISA.SYS , SIZE=999
  585. [Files-BISTOR013WA]
  586. 1,SMCISA.SYS , SIZE=999
  587. [Files-WD8003EA]
  588. 1,SMCISA.SYS , SIZE=999
  589. [Files-WD8003SA]
  590. 1,SMCISA.SYS , SIZE=999
  591. [Files-WD8003WA]
  592. 1,SMCISA.SYS , SIZE=999
  593. [Files-WD8013EPA]
  594. 1,SMCISA.SYS , SIZE=999
  595. [Files-WD8013WPA]
  596. 1,SMCISA.SYS , SIZE=999
  597. [Files-WD8115TRA]
  598. 1,SMCISA.SYS , SIZE=999
  599. [LanguagesSupported]
  600.     ENG
  601. [OptionsTextENG]
  602.     WD8003EA = "SMC (WD) 8003E /A"
  603.     WD8003WA = "SMC (WD) 8003W /A"
  604.     WD8013WPA = "SMC (WD) 8013WP /A"
  605.     WD8013EPA = "SMC (WD) 8013EP /A"
  606. [FileConstantsENG]
  607. FunctionTitle   = "SMC (WD) "$(Option)" Adapter Card Setup"
  608. ProductSoftwareDescription      = "SMC (WD) Adapter Driver"
  609. ProductHardwareDescription      = "SMC (WD) "$(Option)" Adapter"
  610. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  611. ProductSoftwareTitle    = "SMC (WD) Adapter Driver"
  612. ProductHardwareTitle    = "SMC (WD) "$(Option)" Adapter"
  613. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  614. ShellCodeErrorText      = "Shell Code Error."
  615. [DialogConstantsENG]
  616. Help        = "&Help"
  617. Exit        = "Cancel"
  618. OK          = "OK"
  619. HelpContext = ""
  620. Continue    = "C&ontinue"
  621. Cancel      = "C&ancel"
  622. [FileDependentDlgENG]
  623.